home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / WASTE Object Handlers 1.2.6.sit / WASTE Object Handlers 1.2.6 / Handler Headers / WE_snd_Handler.h < prev   
Text File  |  1997-09-08  |  1KB  |  45 lines

  1. // Sound Object Handler for the WASTE Text Engine
  2. // by Michael F. Kamprath, kamprath@kagi.com
  3. // maintenance by John C. Daub, hsoi@eden.com
  4.  
  5. #ifndef __SOUND__
  6. #include <Sound.h>
  7. #endif
  8.  
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. void            InitSoundObjectHandler( void );
  14. pascal OSErr    HandleNewSound(Point *defaultObjectSize,WEObjectReference objectRef);
  15. pascal OSErr    HandleDisposeSound( WEObjectReference objectRef );
  16. pascal OSErr    HandleDrawSound(Rect *destRect, WEObjectReference objectRef );
  17. pascal Boolean    HandleClickSound(    Point hitPt, 
  18.                             short modifiers, 
  19.                             long clickTime, 
  20.                             WEObjectReference objectRef);
  21.                             
  22. // SndChannelPtr    CreateNewSoundChannel( void );
  23.  
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27.  
  28.  
  29. #ifdef __cplusplus
  30. const    short        kSoundIconID    =    550;
  31. const    ResType        kTypeSound        =    'snd ';
  32. #else
  33. #define                kSoundIconID        550
  34. #define                kTypeSound            'snd '
  35. #endif
  36.  
  37.  
  38. //
  39. // If you want the sound object handler's sound channel to
  40. // be create on initialization, define CREATE_CHANNEL_AT_INIT
  41. // to the value 1.  Define CREATE_CHANNEL_AT_INIT to the value
  42. // 0 if you want the channel to be created when first needed.
  43. //
  44.  
  45. #define CREATE_CHANNEL_AT_INIT 1